/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JFrame.java
 *
 * Created on 27/02/2011, 18:03:48
 */

package view;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;

/**
 * 
 * @author vero
 */
public class JFrame extends javax.swing.JFrame {

	private static final long serialVersionUID = 1L;

	/** Creates new form JFrame */
	public JFrame() {
		initComponents();
	}

	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed"
	// desc="Generated Code">//GEN-BEGIN:initComponents
	private void initComponents() {

		jPanel1 = new javax.swing.JPanel();
		jLabel1 = new javax.swing.JLabel();
		jTextFieldNyA = new javax.swing.JTextField();
		jLabel2 = new javax.swing.JLabel();
		jTextFieldDNI = new javax.swing.JTextField();
		jLabel3 = new javax.swing.JLabel();
		jTextFieldFechaNac = new javax.swing.JTextField();
		jPanel2 = new javax.swing.JPanel();
		jTextFieldDestino = new javax.swing.JTextField();
		jLabel4 = new javax.swing.JLabel();
		jTextFieldFechaSalida = new javax.swing.JTextField();
		jLabel5 = new javax.swing.JLabel();
		jLabel6 = new javax.swing.JLabel();
		jTextFieldHotel = new javax.swing.JTextField();
		jLabel7 = new javax.swing.JLabel();
		jTextFieldRegimen = new javax.swing.JTextField();
		jLabel8 = new javax.swing.JLabel();
		jTextFielHrPresentacion = new javax.swing.JTextField();
		jLabel9 = new javax.swing.JLabel();
		jTextFieldHrSalida = new javax.swing.JTextField();
		jLabel10 = new javax.swing.JLabel();
		jTextFieldLugarSalida = new javax.swing.JTextField();
		jLabel11 = new javax.swing.JLabel();
		jTextFieldEmpresa = new javax.swing.JTextField();
		jButtonCrear = new javax.swing.JButton();
		jButtonCerrar = new javax.swing.JButton();
		jLabelInformacion = new javax.swing.JLabel();
		jButtonBorrarTodo = new javax.swing.JButton();
		jButtonNuevoPasajero = new javax.swing.JButton();

		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
		setTitle("Creador de Voucher");
		setResizable(false);

		jPanel1.setBorder(javax.swing.BorderFactory
				.createTitledBorder(javax.swing.BorderFactory
						.createTitledBorder("Pasajero")));

		jLabel1.setText("Nombre y Apellido:");

		jLabel2.setText("DNI:");

		jLabel3.setText("Fecha de Nacimiento:");

		javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(
				jPanel1);
		jPanel1.setLayout(jPanel1Layout);
		jPanel1Layout.setHorizontalGroup(jPanel1Layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						jPanel1Layout
								.createSequentialGroup()
								.addComponent(jLabel1)
								.addGap(4, 4, 4)
								.addComponent(jTextFieldNyA,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										297, Short.MAX_VALUE))
				.addGroup(
						jPanel1Layout
								.createSequentialGroup()
								.addComponent(jLabel2)
								.addGap(4, 4, 4)
								.addComponent(jTextFieldDNI,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										401, Short.MAX_VALUE))
				.addGroup(
						jPanel1Layout
								.createSequentialGroup()
								.addComponent(jLabel3)
								.addGap(4, 4, 4)
								.addComponent(jTextFieldFechaNac,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										278, Short.MAX_VALUE)));
		jPanel1Layout
				.setVerticalGroup(jPanel1Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel1Layout
										.createSequentialGroup()
										.addGroup(
												jPanel1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel1)
														.addComponent(
																jTextFieldNyA,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel2)
														.addComponent(
																jTextFieldDNI,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel3)
														.addComponent(
																jTextFieldFechaNac,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))));

		jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Viaje"));

		jLabel4.setText("Destino:");

		jLabel5.setText("Fecha Salida:");

		jLabel6.setText("Hotel:");

		jLabel7.setText("Regimen:");

		jLabel8.setText("Hora Presentacion:");

		jLabel9.setText("Hora Salida:");

		jLabel10.setText("Lugar salida:");

		jLabel11.setText("Empresa:");

		javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(
				jPanel2);
		jPanel2.setLayout(jPanel2Layout);
		jPanel2Layout.setHorizontalGroup(jPanel2Layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						jPanel2Layout
								.createSequentialGroup()
								.addComponent(jLabel11)
								.addGap(4, 4, 4)
								.addComponent(jTextFieldEmpresa,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										372, Short.MAX_VALUE))
				.addGroup(
						jPanel2Layout
								.createSequentialGroup()
								.addComponent(jLabel4)
								.addGap(4, 4, 4)
								.addComponent(jTextFieldDestino,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										378, Short.MAX_VALUE))
				.addGroup(
						jPanel2Layout
								.createSequentialGroup()
								.addComponent(jLabel5)
								.addGap(4, 4, 4)
								.addComponent(jTextFieldFechaSalida,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										343, Short.MAX_VALUE))
				.addGroup(
						jPanel2Layout
								.createSequentialGroup()
								.addComponent(jLabel6)
								.addGap(4, 4, 4)
								.addComponent(jTextFieldHotel,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										395, Short.MAX_VALUE))
				.addGroup(
						jPanel2Layout
								.createSequentialGroup()
								.addComponent(jLabel7)
								.addGap(4, 4, 4)
								.addComponent(jTextFieldRegimen,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										372, Short.MAX_VALUE))
				.addGroup(
						jPanel2Layout
								.createSequentialGroup()
								.addComponent(jLabel10)
								.addGap(4, 4, 4)
								.addComponent(jTextFieldLugarSalida,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										345, Short.MAX_VALUE))
				.addGroup(
						jPanel2Layout
								.createSequentialGroup()
								.addComponent(jLabel8)
								.addGap(4, 4, 4)
								.addComponent(jTextFielHrPresentacion,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										301, Short.MAX_VALUE))
				.addGroup(
						jPanel2Layout
								.createSequentialGroup()
								.addComponent(jLabel9)
								.addGap(3, 3, 3)
								.addComponent(jTextFieldHrSalida,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										352, Short.MAX_VALUE)));
		jPanel2Layout
				.setVerticalGroup(jPanel2Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel2Layout
										.createSequentialGroup()
										.addGroup(
												jPanel2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel11)
														.addComponent(
																jTextFieldEmpresa,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel4)
														.addComponent(
																jTextFieldDestino,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addGap(5, 5, 5)
										.addGroup(
												jPanel2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel5)
														.addComponent(
																jTextFieldFechaSalida,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel6)
														.addComponent(
																jTextFieldHotel,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jTextFieldRegimen,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(jLabel7))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jTextFieldLugarSalida,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(jLabel10))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel8)
														.addComponent(
																jTextFielHrPresentacion,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel9)
														.addComponent(
																jTextFieldHrSalida,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addContainerGap(
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));

		jButtonCrear.setText("Crear");

		jButtonCerrar.setText("Cerrar");
		jButtonCerrar.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButtonCerrarActionPerformed(evt);
			}
		});

		jButtonBorrarTodo.setText("Borrar Todo");

		jButtonNuevoPasajero.setText("NuevoPasajero");

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
						javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
				.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
						javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
				.addGroup(
						javax.swing.GroupLayout.Alignment.TRAILING,
						layout.createSequentialGroup()
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)
								.addComponent(jButtonCerrar)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jButtonBorrarTodo)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jButtonNuevoPasajero)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jButtonCrear).addGap(11, 11, 11))
				.addComponent(jLabelInformacion,
						javax.swing.GroupLayout.DEFAULT_SIZE, 452,
						Short.MAX_VALUE));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addComponent(jPanel1,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										104,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jPanel2,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jLabelInformacion,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										22,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(jButtonCrear)
												.addComponent(jButtonBorrarTodo)
												.addComponent(jButtonCerrar)
												.addComponent(
														jButtonNuevoPasajero))
								.addContainerGap()));

		pack();
	}// </editor-fold>//GEN-END:initComponents

	private void jButtonCerrarActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButtonCerrarActionPerformed
		System.exit(0);
	}// GEN-LAST:event_jButtonCerrarActionPerformed

	// Variables declaration - do not modify//GEN-BEGIN:variables
	private javax.swing.JButton jButtonBorrarTodo;
	private javax.swing.JButton jButtonCerrar;
	private javax.swing.JButton jButtonCrear;
	private javax.swing.JButton jButtonNuevoPasajero;
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel10;
	private javax.swing.JLabel jLabel11;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JLabel jLabel3;
	private javax.swing.JLabel jLabel4;
	private javax.swing.JLabel jLabel5;
	private javax.swing.JLabel jLabel6;
	private javax.swing.JLabel jLabel7;
	private javax.swing.JLabel jLabel8;
	private javax.swing.JLabel jLabel9;
	private javax.swing.JLabel jLabelInformacion;
	private javax.swing.JPanel jPanel1;
	private javax.swing.JPanel jPanel2;
	private javax.swing.JTextField jTextFielHrPresentacion;
	private javax.swing.JTextField jTextFieldDNI;
	private javax.swing.JTextField jTextFieldDestino;
	private javax.swing.JTextField jTextFieldEmpresa;
	private javax.swing.JTextField jTextFieldFechaNac;
	private javax.swing.JTextField jTextFieldFechaSalida;
	private javax.swing.JTextField jTextFieldHotel;
	private javax.swing.JTextField jTextFieldHrSalida;
	private javax.swing.JTextField jTextFieldLugarSalida;
	private javax.swing.JTextField jTextFieldNyA;
	private javax.swing.JTextField jTextFieldRegimen;

	// End of variables declaration//GEN-END:variables

	public JTextField getJTextFieldNYA() {
		return jTextFieldNyA;
	}

	public JTextField getJTextFieldDNI() {
		return jTextFieldDNI;
	}

	public JTextField getJTextFieldFechaNac() {
		return jTextFieldFechaNac;
	}

	public JTextField getJTextFieldEmpresa() {
		return jTextFieldEmpresa;
	}

	public JTextField getJTextFieldDestino() {
		return jTextFieldDestino;
	}

	public JTextField getJTextFieldFechaSalida() {
		return jTextFieldFechaSalida;
	}

	public JTextField getJTextFieldHotel() {
		return jTextFieldHotel;
	}

	public JTextField getJTextFieldRegimen() {
		return jTextFieldRegimen;
	}

	public JTextField getJTextFieldLugarSalida() {
		return jTextFieldLugarSalida;
	}

	public JTextField getJTextFieldHrPresentacion() {
		return jTextFielHrPresentacion;
	}

	public JTextField getJTextFieldHrSalida() {
		return jTextFieldHrSalida;
	}

	public JLabel getJLabelInformacion() {
		return jLabelInformacion;
	}

	public JButton getJButtonBorrarTodo() {
		return jButtonBorrarTodo;
	}

	public JButton getJButtonNuevoPasajero() {
		return jButtonNuevoPasajero;
	}

	public JButton getJButtonCrear() {
		return jButtonCrear;
	}
}
